package com.atguigu.gmall.model.order.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
public class OrderSubmitVo {


    @JsonProperty("consignee")
    private String consignee; //收货人
    @JsonProperty("consigneeTel")
    private String consigneeTel; //收货人电话
    @JsonProperty("deliveryAddress")
    private String deliveryAddress; //配送地址
    @JsonProperty("orderComment")
    private String orderComment; //订单备注

    @JsonProperty("orderDetailList") //订单商品列表
    private List<OrderDetailListDTO> orderDetailList;

    @NoArgsConstructor
    @Data
    public static class OrderDetailListDTO {
        @JsonProperty("skuId")
        private Long skuId;
        @JsonProperty("imgUrl")
        private String imgUrl;
        @JsonProperty("skuName")
        private String skuName;
        @JsonProperty("orderPrice")
        private BigDecimal orderPrice;
        @JsonProperty("skuNum")
        private Integer skuNum;
        @JsonProperty("hasStock")
        private Integer hasStock;
    }
}